﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UniRlv.COL;
using UniRlv.Utility;

namespace UniRlv.UI.Main.Widget
{
    public class ScanProccess
    {
        public List<CodeInfo> Codes11 { get; set; }
        public List<CodeInfo> Codes12 { get; set; }
        public List<CodeInfo> Codes2 { get; set; }
        public List<CodeInfo> Codes3 { get; set; }
        public List<CodeInfo> Codes4 { get; set; }
        public int Picks1 { get; set; }
        public int Picks2 { get; set; }
        public int Picks3 { get; set; }
        public ProductionTask CurTask { get; set; }

        private static ScanProccess _instance = null;

        private ScanProccess()
        {
            Codes11 = new List<CodeInfo>(1000000);
            Codes12 = new List<CodeInfo>(1000000);
            Codes2 = new List<CodeInfo>(200000);
            Codes3 = new List<CodeInfo>(20000);
            Codes4 = new List<CodeInfo>(10000);
        }

        public static ScanProccess GetInstance()
        {
            //return Singleton<WorkSpace>.GetInstance();

            if (_instance == null)
            {
                _instance = new ScanProccess();
            }

            return _instance;
        }
    }
}
